package com.feng.common.exception;

/**
 * @author Lee
 */
public class ValidationException extends RuntimeException {

    private ErrorCode errorCode;

    public ValidationException(ErrorCode errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public ValidationException(ErrorCode errorCode,String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public ValidationException(ErrorCode errorCode,String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }
}
